<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:37:"themes/simpleboot3/portal\\index.html";i:1546928944;s:57:"D:\wamp64\lxgq\public\themes\simpleboot3\public\head.html";i:1546999629;s:56:"D:\wamp64\lxgq\public\themes\simpleboot3\public\nav.html";i:1545733118;s:59:"D:\wamp64\lxgq\public\themes\simpleboot3\public\footer.html";i:1545733959;s:60:"D:\wamp64\lxgq\public\themes\simpleboot3\public\scripts.html";i:1545726371;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <title><?php echo (isset($site_info['site_seo_title']) && ($site_info['site_seo_title'] !== '')?$site_info['site_seo_title']:''); ?></title>
    <meta name="keywords" content="<?php echo (isset($site_info['site_seo_keywords']) && ($site_info['site_seo_keywords'] !== '')?$site_info['site_seo_keywords']:''); ?>"/>
    <meta name="description" content="<?php echo (isset($site_info['site_seo_description']) && ($site_info['site_seo_description'] !== '')?$site_info['site_seo_description']:''); ?>">
    <meta charset="utf-8"/>
<meta name="applicable-device"content="pc,mobile">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<meta http-equiv="Cache-Control" content="no-transform "/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="renderer" content="webkit">
<meta name="viewport" content="initial-scale=1.0,user-scalable=no">
<link rel='stylesheet' id='style-css' href='/themes/simpleboot3/public/assets/css/style.css' type='text/css' media='all'/>
<link rel='stylesheet' id='jquery.fancybox-css' href='/themes/simpleboot3/public/assets/css/jquery.fancybox.css' type='text/css' media='all'/>
<link rel='stylesheet' id='highlightx-css' href='/themes/simpleboot3/public/assets/css/highlightx.css' type='text/css' media='all'/>
<link rel='stylesheet' id='owl.carousel-css' href='/themes/simpleboot3/public/assets/css/owl.carousel.css' type='text/css' media='all'/>
<link rel='stylesheet' id='owl.theme-css' href='/themes/simpleboot3/public/assets/css/owl.theme.css' type='text/css' media='all'/>
<link rel='stylesheet' id='font-awesome-css' href='/themes/simpleboot3/public/assets/css/font-awesome.min.css' type='text/css' media='all'/>

</head>
<body class="home blog">
<header id="header" class="header clr">
    <div class="header-top inner clr">
        <hgroup class="logo-main">
            <div class="title-main">
                <h3 class="site-title"><a href="/" rel="home"><?php echo $site_info['site_name']; ?>  </a></h3>
                <h4>人到中年不得已 保温杯里泡枸杞</h4>
            </div>
        </hgroup>
        <div class="top-dianhua xs-hidden xss-hidden">
            <b>电话：</b><span><?php echo $theme_vars['tall']; ?></span>
        </div>
        <div class="menu-button">
            <i class="fa fa-bars fa-3x"></i>
        </div>
    </div>
    <div class="main-nav xs-hidden">
        <div class="inner clr">
            <nav class="left-nav clr">
                <ul id="menu-main-nav" class="header-menu-nav">
                    <li  class='current-menu-item' ><a href="/"><span>首页</span></a></li>
                    <?php

function __parse_navigatione9a47cd575193056a5d9809a3f1e0882($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigatione9a47cd575193056a5d9809a3f1e0882';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): ?>
    
                        <li ><a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>"><?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?></a></li>
                    
    <?php endforeach; endif; else: echo "" ;endif; 
}

    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('1',0);
if(''==''): ?>
    <?php echo __parse_navigatione9a47cd575193056a5d9809a3f1e0882($menus); else: ?>
    < id="" class="nav navbar-nav">
        <?php echo __parse_navigatione9a47cd575193056a5d9809a3f1e0882($menus); ?>
    </>
<?php endif; ?>

                </ul>
            </nav>
            <nav class="right-nav clr xss-hidden">
                <ul id="menu-header-nav" class="header-menu-nav">

                </ul>
            </nav>
        </div>
    </div>
    <div class="nav-bg">
    </div>
    <div class="fixed xs-hidden">
        <div class="inner clr">
            <nav class="left-nav clr">
                <ul id="menu-main-nav-1" class="header-menu-nav">
                    <li  class='current-menu-item' ><a href="/"><span> 首页</span></a></li>
                    <?php

function __parse_navigation11ce5fd5bc216c725d3a4eabe002a128($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigation11ce5fd5bc216c725d3a4eabe002a128';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): ?>
    
                        <li ><a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>"><?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?></a></li>
                    
    <?php endforeach; endif; else: echo "" ;endif; 
}

    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('1',0);
if(''==''): ?>
    <?php echo __parse_navigation11ce5fd5bc216c725d3a4eabe002a128($menus); else: ?>
    < id="" class="nav navbar-nav">
        <?php echo __parse_navigation11ce5fd5bc216c725d3a4eabe002a128($menus); ?>
    </>
<?php endif; ?>

                </ul>
            </nav>
            <nav class="right-nav clr xss-hidden ">
                <ul id="menu-header-nav-1" class="header-menu-nav">

                </ul>
            </nav>
        </div>
    </div>
    <nav class="mini-nav visible-xs">
        <ul id="menu-about" class="menu-mini-nav">
            <li  class='current-menu-item' ><a href="/"><span> 首页</span></a></li>
            <?php

function __parse_navigation966821d7c172d11db6ddfc27bc8946d6($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigation966821d7c172d11db6ddfc27bc8946d6';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): ?>
    
                <li ><a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>"><?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?></a></li>
            
    <?php endforeach; endif; else: echo "" ;endif; 
}

    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('1',0);
if(''==''): ?>
    <?php echo __parse_navigation966821d7c172d11db6ddfc27bc8946d6($menus); else: ?>
    < id="" class="nav navbar-nav">
        <?php echo __parse_navigation966821d7c172d11db6ddfc27bc8946d6($menus); ?>
    </>
<?php endif; ?>

        </ul>
    </nav>
</header>
    <section class="xs-main index-main clr">
        <div class="inner">
            <div class="xs-left">
                <div class="top-list clr">
                    <div class="slider">
                        <div id="owl-demo">
                            <?php $where = ['post.recommended'=>1]; 
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => $where,
    'limit'   => '0,5',
    'order'   => 'post.published_time DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>''
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                                <div class="item">
                                    <div class="slider-img">
                                        <a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" rel="bookmark" title="<?php echo cnsubstr($vo['post_title'],25); ?>">
                                            <img src="/upload/<?php echo $vo['thumbnail']; ?>" alt="<?php echo cnsubstr($vo['post_title'],25); ?>" class="hdp-img" style="height:272px; width:504px;"/></a>
                                    </div>
                                    <div class="slider-content">
                                        <h2><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" rel="bookmark" title="<?php echo cnsubstr($vo['post_title'],25); ?>"><?php echo cnsubstr($vo['post_title'],25); ?></a></h2>
                                        <div class="slidertext xs-hidden">
                                            <?php echo cnsubstr($vo['post_excerpt'],50); ?>
                                        </div>
                                    </div>
                                </div>
                            
<?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>
                    </div>
                    <div class="tt xs-hidden">
                        <div class="s-title">
                            <img src="/themes/simpleboot3/public/assets/picture/hotlists-tip.jpg" style="height:28px;width:120px">
                        </div>
                        <ul>
                            <?php $where = ['post.recommended'=>1]; 
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => $where,
    'limit'   => '5,6',
    'order'   => 'post.published_time DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>''
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                                <li id="post-512"><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" rel="bookmark"><?php echo cnsubstr($vo['post_title'],25); ?></a></li>
                            
<?php endforeach; endif; else: echo "" ;endif; ?>
                        </ul>
                    </div>
                </div>
                <div class="daodu clr">
                    <div class="tip">
                        <h4><span class="yel">宁夏枸杞</span><span class="gra">功效与作用</span></h4>
                    </div>
                    <ul class="dd-list">
                        <?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => "",
    'limit'   => '6',
    'order'   => 'post.published_time DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>'2'
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                            <li>
                                <figure class="dd-img"><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" rel="bookmark" title="<?php echo cnsubstr($vo['post_title'],25); ?>"><img src="/upload/<?php echo $vo['thumbnail']; ?>" alt="<?php echo cnsubstr($vo['post_title'],25); ?>"/></a></figure>
                                <div class="dd-content">
                                    <h2 class="dd-title"><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" rel="bookmark"><?php echo cnsubstr($vo['post_title'],25); ?></a></h2>
                                    <div class="dd-site xs-hidden">
                                        <?php echo cnsubstr($vo['post_excerpt'],50); ?>
                                    </div>
                                </div>
                            </li>
                        
<?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
                <div id="g-dd" class="ad">
                </div>
                <div class="content-ajax">
                    <div class="tip">
                        <h4><span class="yel">宁夏枸杞</span><span class="gra">怎么喝才养生</span></h4>
                        <div class="count xs-hidden">
                            <i></i> 今日浏览量<strong></strong>篇 <em></em>
                        </div>
                    </div>
                    <?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => "",
    'limit'   => '6',
    'order'   => 'post.published_time DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>'3'
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                        <article id="post-532" class="post-532 post type-post status-publish format-standard hentry category-web-design tag-user-experience">
                            <figure class="entry-img"><span class="sort"></span><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" rel="bookmark" title="<?php echo cnsubstr($vo['post_title'],25); ?>">
                                <img src="/upload/<?php echo $vo['thumbnail']; ?>" alt="<?php echo cnsubstr($vo['post_title'],25); ?>" class="thumbnail"/></a></figure>
                            <div class="entry-content">
                                <h2 class="entry-title"><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" rel="bookmark"><?php echo cnsubstr($vo['post_title'],25); ?></a></h2>
                                <div class="entry-site xs-hidden">
                                    <?php echo cnsubstr($vo['post_excerpt'],50); ?>
                                </div>
                                <div class="entry-meta">
                                    <div class="eye xs-hidden">
                                        <i class="fa fa-eye fa-1"></i><a href="javascript:void(0);"><?php echo $vo['post_hits']; ?> </a>
                                    </div>
                                    <div class="time">
                                        <i></i><a href="javascript:void(0);"><?php echo date('y-m-d',$vo['published_time']); ?></a>
                                    </div>
                                </div>
                            </div>
                        </article>
                    
<?php endforeach; endif; else: echo "" ;endif; $where = ['post.recommended'=>1]; 
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => $where,
    'limit'   => '1',
    'order'   => 'post.published_time DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>'3'
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                        <article id="post-532" class="post-532 post type-post status-publish format-standard hentry category-web-design tag-user-experience">
                            <figure class="entry-img"><span class="sort"></span><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" rel="bookmark" title="<?php echo cnsubstr($vo['post_title'],25); ?>">
                                <img src="/upload/<?php echo $vo['thumbnail']; ?>" alt="<?php echo cnsubstr($vo['post_title'],25); ?>" class="thumbnail"/></a></figure>
                            <div class="entry-content">
                                <h2 class="entry-title"><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" rel="bookmark"><?php echo cnsubstr($vo['post_title'],25); ?></a></h2>
                                <div class="entry-site xs-hidden">
                                    <?php echo cnsubstr($vo['post_excerpt'],50); ?>
                                </div>
                                <div class="entry-meta">
                                    <div class="eye xs-hidden">
                                        <i class="fa fa-eye fa-1"></i><a href="javascript:void(0);"><?php echo $vo['post_hits']; ?></a>
                                    </div>
                                    <div class="time">
                                        <i></i><a href="javascript:void(0);"><?php echo date('y-m-d',$vo['published_time']); ?></a>
                                    </div>
                                </div>
                            </div>
                        </article>
                    
<?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
                <div id="pagenavi">
                </div>
                <!-- 后来加上的  后来加上的  后来加上的 后来加上的 后来加上的 后来加上的 后来加上的 -->
                <div class="daodu clr">
                    <div class="tip">
                        <h4><span class="yel">宁夏枸杞</span><span class="gra">质量与价格</span></h4>
                    </div>
                    <ul class="dd-list">
                        <?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => "",
    'limit'   => '6',
    'order'   => 'post.published_time DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>'1'
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                            <li>
                                <figure class="dd-img"><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" rel="bookmark" title="<?php echo cnsubstr($vo['post_title'],25); ?>"><img src="/upload/<?php echo $vo['thumbnail']; ?>" alt="<?php echo cnsubstr($vo['post_title'],25); ?>"/></a></figure>
                                <div class="dd-content">
                                    <h2 class="dd-title"><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" rel="bookmark"><?php echo cnsubstr($vo['post_title'],25); ?></a></h2>
                                    <div class="dd-site xs-hidden">
                                        <?php echo cnsubstr($vo['post_excerpt'],50); ?>
                                    </div>
                                </div>
                            </li>
                        
<?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
                <!-- 后来加上的  后来加上的  后来加上的 后来加上的 后来加上的 后来加上的 后来加上的 -->
            </div>
            <div class="xs-right sidebar xs-hidden xss-hidden">
                <div><!-- 360 联盟广告360 联盟广告360 联盟广告360 联盟广告360 联盟广告 -->
                <a href="<?php echo $theme_vars['indexImg']['0']['explain']; ?>"><img alt="<?php echo $theme_vars['indexImg']['0']['title']; ?>" src="/upload/<?php echo $theme_vars['indexImg']['0']['img']; ?>" style="width: 248px; height: 248px;"/></a>
                <!-- 360 联盟广告360 联盟广告360 联盟广告360 联盟广告360 联盟广告 -->
            </div>
            <aside class="dates">
                <div class="si-title">
                    <h2>快速阅读</h2>
                </div>
                <ul>
                    <?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => "",
    'limit'   => '5',
    'order'   => 'post.published_time DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>''
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                        <li><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" rel="bookmark" title="<?php echo cnsubstr($vo['post_title'],25); ?>">
                            <div class="time">
                                <?php echo date('m-d',$vo['published_time']); ?>
                            </div>
                            <p>
                                <?php echo cnsubstr($vo['post_title'],25); ?>
                            </p>
                        </a></li>
                    
<?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </aside>
            <aside id="tw_post-2" class="widget-container widget_tw_post">
                <div class="si-title">
                    <h2>图文推荐</h2>
                </div>
                <div class="tw">
                    <?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => "",
    'limit'   => '14',
    'order'   => 'post.published_time DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>''
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                        <div class="tw-list">
                            <a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>" title=" <?php echo cnsubstr($vo['post_title'],25); ?>">
                                <img src="/upload/<?php echo $vo['thumbnail']; ?>" alt=" <?php echo cnsubstr($vo['post_title'],25); ?>" class="tw-img"/>
                                <p>
                                    <?php echo cnsubstr($vo['post_title'],25); ?>
                                </p>
                            </a>
                        </div>
                    
<?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
            </aside>
            <aside id="hot_post-2" class="widget-container widget_hot_post">
                <div class="si-title">
                    <h2>热门文章</h2>
                </div>
                <ul class="remen">
                    <?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => "",
    'limit'   => '8',
    'order'   => 'post.post_hits DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>''
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                        <li><i class="fa fa-angle-right fa-1"></i><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>"> <?php echo cnsubstr($vo['post_title'],25); ?></a></li>
                    
<?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </aside>
            <div> <!-- 360 联盟广告360 联盟广告360 联盟广告360 联盟广告360 联盟广告 -->
                <a href="<?php echo $theme_vars['indexImg']['0']['explain']; ?>"><img alt="<?php echo $theme_vars['indexImg']['0']['title']; ?>" src="/upload/<?php echo $theme_vars['indexImg']['0']['img']; ?>" style="width: 248px; height: 248px;"/></a>
            <!-- 360 联盟广告360 联盟广告360 联盟广告360 联盟广告360 联盟广告 -->
        </div>
        <aside id="recent-posts-3" class="widget-container widget_recent_entries">
            <div class="si-title">
                <h2>随便看看</h2>
            </div>
            <ul>
                <?php $where = ['post.recommended'=>1]; 
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => $where,
    'limit'   => '8',
    'order'   => 'post.post_hits DESC',
    'page'    => '',
    'relation'=> '',
    'category_ids'=>''
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                    <li><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['categories'][0]['id'])); ?>"> <?php echo cnsubstr($vo['post_title'],25); ?></a></li>
                
<?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </aside>
        <div id="g-sidebar-bot" class="ad">
            <div class="select fr">
                <h4>友情链接</h4>
                <ul class='xoxo blogroll'>
                    <?php
     $__LINKS__ = \app\admin\service\ApiService::links();
if(is_array($__LINKS__) || $__LINKS__ instanceof \think\Collection || $__LINKS__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LINKS__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                        <li> <a href="<?php echo (isset($vo['url']) && ($vo['url'] !== '')?$vo['url']:''); ?>" target="<?php echo (isset($vo['target']) && ($vo['target'] !== '')?$vo['target']:''); ?>"><?php echo (isset($vo['name']) && ($vo['name'] !== '')?$vo['name']:''); ?></a> </li>
                    
<?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>
        </div>
        </div>
        </div>
    </section>

<footer>
    <div class="copyr">
        <div style="text-align: center;">
             <p>
                <strong><span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:16px;"><?php echo htmlspecialchars_decode($theme_vars['footer']); ?></span></span></strong>
            </p>
            <p>
                <strong><span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:16px;">Copyright © <?php echo $site_info['site_name']; ?> All Rights Reserved. 备案号：<?php echo $site_info['site_icp']; ?> </span></span></strong>
            </p>
        </div>
        <div class="inner">
        </div>
    </div>
</footer>
<script type='text/javascript' src='/themes/simpleboot3/public/assets/js/jquery.min.js'></script>
<script type='text/javascript' src='/themes/simpleboot3/public/assets/js/jquery.lazyload.min.js'></script>
<script type='text/javascript' src='/themes/simpleboot3/public/assets/js/jquery.fancybox.js'></script>
<script type='text/javascript' src='/themes/simpleboot3/public/assets/js/jquery.fancybox-buttons.js'></script>
<script type='text/javascript' src='/themes/simpleboot3/public/assets/js/jquery.mousewheel-3.0.6.pack.js'></script>
<script type='text/javascript' src='/themes/simpleboot3/public/assets/js/owl.carousel.min.js'></script>
<script type='text/javascript' src='/themes/simpleboot3/public/assets/js/custom.js'></script>
<script src="/themes/simpleboot3/public/assets/js/html5shiv.min.js"></script>
<script src="/themes/simpleboot3/public/assets/js/respond.min.js"></script>
</body>
</html>